package Music_Main;

public class VideoTime {
	private int secondTotal;
    private int minitueTotal;
    private int secondCurrent;
    private int minitueCurrent; 
    public void timeCalculate(long total,long curr){
        total=total/1000000;        
        minitueTotal = (int) (total / 60);
        secondTotal = (int) (total % 60);
        
        curr = curr /1000000;
        minitueCurrent = (int) (curr/ 60);
        secondCurrent = (int) (curr % 60);        
        
    }
    
    public String getSecondTotal() {
    	String SecondTotal=String.valueOf(secondTotal);
    	if(secondTotal<10) {
    		SecondTotal = "0"+secondTotal;
    	}
        return SecondTotal;
    }

    public void setSecondTotal(int secondTotal) {
        this.secondTotal = secondTotal;
    }

    public String getMinitueTotal() {
    	String MinitueTotal=String.valueOf(secondTotal);
    	if(minitueTotal<10) {
    		MinitueTotal = "0"+minitueTotal;
    	}
        return MinitueTotal;
    }

    public void setMinitueTotal(int minitueTotal) {
        this.minitueTotal = minitueTotal;
    }

    public String getSecondCurrent() {
    	String SecondCurrent=String.valueOf(secondCurrent);
    	if(secondCurrent<10) {
    		SecondCurrent = "0"+secondCurrent;
    	}
        return SecondCurrent;
    }

    public void setSecondCurrent(int secondCurrent) {
        this.secondCurrent = secondCurrent;
    }

    public String getMinitueCurrent() {
    	String MinitueCurrent=String.valueOf(minitueCurrent);
    	if(minitueCurrent<10) {
    		MinitueCurrent = "0"+minitueCurrent;
    	}
        return MinitueCurrent;
    }

    public void setMinitueCurrent(int minitueCurrent) {
        this.minitueCurrent = minitueCurrent;
    }    
}
